<form name="ModelForm" action="{url:/system/takeself_operate}" method="post">
<div class="headbar">
	<div class="position"><span>系统</span><span>></span><span>自提点管理</span><span>></span><span>自提点</span></div>
	<div class="operating">
		<a href="javascript:void(0)" onclick="event_link('{url:/system/takeself_edit}')"><button class="operating_btn" type="button"><span class="addition">添加自提点</span></button></a>
		<a href="javascript:void(0)" onclick="selectAll('id[]')"><button class="operating_btn" type="button"><span class="sel_all">全选</span></button></a>
		<a href="javascript:void(0)" onclick="delModel()"><button class="operating_btn" type="button"><span class="delete">批量删除</span></button></a>
	</div>
</div>
<div class="content">
	<table class="list_table">
		<colgroup>
			<col width="40px" />
			<col width="150px" />
			<col />
		</colgroup>

		<thead>
			<tr>
				<th>选择</th>
				<th>名称</th>
				<th>市</th>
				<th>地址</th>
				<th>固定电话</th>
				<th>手机</th>
				<th>排序</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>
			{set:$page= (isset($_GET['page'])&&(intval($_GET['page'])>0))?intval($_GET['page']):1;}
			{query: name=takeself as o join=left join areas as d on o.city eq d.area_id fields=o.id,o.name, o.sort,o.province,o.city,o.area,o.address,o.phone,o.mobile,d.area_name page=$page order=sort  }
			<tr>
				<td><input name="id[]" type="checkbox" value="{$item['id']}" /></td>
				<td>{$item['name']}</td>
				<td>{$item['area_name']}</td>
				<td>{$item['address']}</td>
				<td>{$item['phone']}</td>
				<td>{$item['mobile']}</td>
				<td>{$item['sort']}</td>
				<td>
					<a href="{url:/system/takeself_edit/id/$item[id]}"><img class="operator" src="{skin:images/admin/icon_edit.gif}" alt="编辑" /></a>
					<a href="javascript:void(0)" onclick="delModel({link:'{url:/system/takeself_operate/id/$item[id]}'})"><img class="operator" src="{skin:images/admin/icon_del.gif}"  alt="删除" /></a>
				</td>
			</tr>
			{/query}
		</tbody>
	</table>
</div>
{$query->getPageBar()}
</form>
